package org.jeecg.modules.common.bean.influx;

import com.alibaba.fastjson.annotation.JSONField;
import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.jeecg.modules.common.bean.InfluxDbEntity;

import java.time.Instant;
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Measurement(name = "temperature")
public class Env extends InfluxDbEntity {

    @Column(tag = true)
    private String clientId;
    @Column
    private Double temper_1;
    @Column
    private Double humidity_1;
    @Column
    private Double co_1;
    @Column
    private Double co2_1;
    @Column
    @JSONField(name = "pm2.5_1")
    private Double pm25_1;
    @Column
    private Double pm10_1;
    @Column
    private Double noise_1;
    @Column
    private Double pressure_1;
    @Column(timestamp = true)
    private Instant time;


}